home *** CD-ROM | disk | FTP | other *** search
/ Java Certification Exam Guide / McGrawwHill-JavaCertificationExamGuide.iso / pc / Web Links and Code / code / chap13 / GridOver.java < prev    next >
Encoding:
Java Source  |  1997-04-20  |  366 b   |  16 lines

  1. import java.applet.Applet;
  2. import java.awt.*;
  3.  
  4. public class GridOver extends Applet {
  5.    public void init() {
  6.       setLayout(new GridLayout(1, 2));
  7.  
  8.       add(new Button("mouse"));
  9.       add(new Button("dog"));
  10.       add(new Button("cat"));
  11.       add(new Button("elephant"));
  12.       add(new Button("monkey"));
  13.       add(new Button("giraffe"));
  14.    }
  15. }
  16.